class My_test:
    def test_one(self):
        a = 3
        b = "sdsad"
        print(type(b))
    def test_two(self):
        print("=================")
        var1 = "nihao"
        var2 = "zhen bucuo"
        print(var2[:3]+"2222222222222222222测试")
        print(len(var2))
        print(var2.upper())

    def test_three(self):
        print("=================")
        list1 = ["Google","Runoob","Run1ob","Zhihu", "Taobao", "Wiki"]
        print(list1[0])
        print(list1[2:5])
        print(list1[-1])
        print(list1.pop(1))
        aList = [123, 'xyz', 'zara', 'abc', 'xyz']


        for i in reversed(aList):
            print(i)

        aList.reverse()
        print(aList)

        x = "sdas22"

        print(str(x)[::-1])

    def test_four(self):
        print("=================")
        tup = ('physics', 'chemistry', 1997, 2000)
        tinydict = {'name': 'runoob', 'likes': 123, 'url': 'www.runoob.com'}
        basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}
        ttinydict2 = {'Sex': 'female' }
        tinydict.update(ttinydict2)
        print(tinydict)
        print()
        sites = ["Baidu", "Google", "Runoob", "Taobao"]
        for site in sites:
            print(site)

        count = 0
        while count<6:
            print(count,)
            count=count + 1
        else:
            print(count+"大于五")

        sites = ["Baidu", "Google", "Runoob", "Taobao"]
        for site in sites:
            if site == "Runoob":
                print("菜鸟教程!")
                break
            print("循环数据 " + site)
        else:
            print("没有循环数据!")
        print("完成循环!")

    def test_five(self,head):

        pre = None
        cur = head
        while cur:
            tmp = cur.next
            cur.next = pre
            pre = cur
            cur = tmp
        return pre

    def test_five1(self):
        str ="1 2 3 4 5"
        strint =  str.split(' ')
        min = 0
        max = 0
        for  st in  strint:
             st = int(st)
             if min == 0:
                 min= st
             if max == 0:
                 max = st
             if st < min:
                 min = st
             if st > max:
                 max = st

        print(min)
        print(max)

    def test_five2(self):
        str = [3,4,-8,-3,11]

        str.sort()

        

        print(str)
        max = 0
        for st1 in range(len(str)):
            for st2 in range(st1+1,len(str)):
                if (str[st1]*str[st2])>max:
                    max=(str[st1]*str[st2])


        print(max)


if __name__ == '__main__':

    My_test().test_five2()

   # My_test().test_three()
   # My_test().test_two()
    # My_test().test_four()